/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chameleon.view.command;

import chameleon.model.NuGatManager.NuGatManager;
import chameleon.view.input.Input;

/**
 *
 * @author simon
 */
class checkAvoidTargetCommand extends Command{

    String[] argv_;

    public checkAvoidTargetCommand(Input input, String[] argv) {
        super(input,false,false);
        argv_ = argv;
    }

    @Override
    public Input execute() {
        InternalCheckCommand check = new InternalCheckCommand(input_, 2);
        if (check.isOk()){
            NuGatManager manager = (NuGatManager) input_.getManager();
            manager.checkAvoidTarget(argv_);
        }
        return input_;
    }

}
